package com.sftz.modules.minapp.paper.form;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import lombok.Data;

import org.hibernate.validator.constraints.NotEmpty;

@Data
public class PaperAnswerFileForm {

	//token
	@NotEmpty(message = "授权token不能为空")
	private String token;

	//试题id
	@NotNull(message = "试题id不能为空")
	@Min(value = 1, message = "试题id非法")
	private Integer questionId;

	//作答记录id
	@NotNull(message = "作答记录id不能为空")
	@Min(value = 1, message = "作答记录id非法")
	private Integer recordId;

	@NotEmpty(message = "文件名不能为空")
	private String fileName;

}
